import os
import sys
def getpath():
    print("getpath")
    print(__file__)
    library=os.path.split(os.path.abspath(__file__))[0]
    return library
    # return os.path.split(library)[0]
    # ps=__file__.split(os.path.sep)
    # r=""
    # for i in ps[:-1]:
    #     r=r+i+os.path.sep
    # return(r)
def getdrive():
    return  os.path.splitdrive(os.path.abspath(os.path.curdir))[0]
if __name__=="__main__":    
    print(getpath())
   
    